﻿<!DOCTYPE HTML>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <title>简历管理-伯乐网</title>
    <link href="style/css/style.css" type="text/css" rel="stylesheet">
    <link href="style/css/external.min.css" type="text/css" rel="stylesheet">
    <link href="style/css/popup.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="style/js/jquery.1.10.1.min.js"></script>
    <script src="style/js/jquery.lib.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="style/js/ajaxfileupload.js"></script>
    <script src="style/js/additional-methods.js" type="text/javascript"></script>
    <!--layer.js-->
    <script type="text/javascript" src="style/js/layer/layer.js"></script>
</head>

<body>
<input type="hidden" th:value="${session.user.id}" id="userId">
<div id="body">
    <!--引入顶部导航栏-->
    <div th:replace="public/publicFragment::top_nav_resumeManager"></div>


    <div id="container">
        <!--左边框-->
        <div class="sidebar">
            <a class="btn_create" href="/create">发布新职位</a>
            <dl class="company_center_aside">
                <dt>我收到的简历</dt>
                <dd class="current">
                    <a th:href="'/manager?userId='+${session.user.id}">待处理简历</a>
                </dd>
                <dd>
                    <a th:href="'/informResume?userId='+${session.user.id}">已通知面试简历</a>
                </dd>
                <dd>
                    <a th:href="'/notResume?userId='+${session.user.id}">不合适简历</a>
                </dd>
            </dl>
        </div>
        <!-- 左边框 end -->

        <!--主体-->
        <div class="content">
            <dl class="company_center_content">
                <dt>
                    <h1>
                        <em></em>
                        待处理简历 <span></span></h1>
                </dt>
                <dd>
                    <form action="canInterviewResumes.html" method="get" id="filterForm">
                        <!--收到的简历列表-->
                        <ul class="reset resumeLists" th:each="toudi:${session.managerToudi}">
                            <li class="onlineResume">

                                <div class="resumeShow" style="margin-left: 0px">
                                    <a title="预览简历" target="_blank" class="resumeImg" th:href="'/companyPreviewResume?resumeId='+${toudi.resume.id}">
                                        <img th:src="'userPhoto/'+${toudi.resume.photo}">
                                    </a>
                                    <div class="resumeIntro">
                                        <h3 class="unread">
                                            <a target="_blank" th:title="'预览'+${toudi.resume.name}+'的简历'"
                                               href="resumeView.html?deliverId=1686182">
                                                [[${toudi.resume.name}]]的简历
                                            </a>
                                            <em></em>
                                        </h3>
                                        <span class="fr">投递时间：[[${toudi.deliver.deliverTime}]]</span>
                                        <div>
                                            [[${toudi.resume.name}]] /  [[${toudi.resume.sex}]] /  [[${toudi.resume.maxEducation}]]<br>
                                            [[${toudi.resume.maxEducation}]] · [[${toudi.resume.school}]] / [[${toudi.resume.majorName}]]
                                        </div>
                                        <div class="jdpublisher">
													<span>
                                                        应聘职位：<a th:title="${toudi.deliver.positionName}">[[${toudi.deliver.positionName}]]</a>
                                                    </span>
                                        </div>
                                    </div>
                                    <div class="links">
                                        <!--隐藏域 存放投递记录ID-->
                                        <input type="hidden" th:value="${toudi.deliver.id}">
                                        <a class="resume_notice" onclick="inform(this)" href="javascript:void(0)">通知面试</a>
                                        <a class="resume_refuse" onclick="notSuitable(this)" href="javascript:void(0)">不合适</a>
                                    </div>
                                    <script>
                                        //点击通知面试按钮
                                        function inform(t) {
                                            //获取简历投递ID
                                            var toudiId=$(t).prev().val().trim();
                                            //获取当前登陆人id
                                            var userId=$("#userId").val().trim();
                                            $.ajax({
                                                type: "post",
                                                url: "/inform/" + toudiId+"/"+userId,
                                                success: function (result) {
                                                    //成功的回调函数
                                                    //删除该节点
                                                    $(t).parent().parent().parent().remove();
                                                    layer.alert("通知成功！", {icon: 1});
                                                    return false;
                                                },
                                                exception(){
                                                    layer.alert("系统繁忙，请稍后再试！", {icon: 5});
                                                    return false;
                                                }
                                            });

                                        }

                                        //点击不合适按钮
                                        function notSuitable(t) {
                                            //获取简历投递ID
                                            var toudiId=$(t).prev().prev().val().trim();
                                            //获取当前登陆人id
                                            var userId=$("#userId").val().trim();
                                            $.ajax({
                                                type: "post",
                                                url: "/notSuitable/" + toudiId+"/"+userId,
                                                success: function (result) {
                                                    //成功的回调函数
                                                    //删除该节点
                                                    $(t).parent().parent().parent().remove();
                                                    layer.alert("设置成功！", {icon: 1});
                                                    return false;
                                                },
                                                exception(){
                                                    layer.alert("系统繁忙，请稍后再试！", {icon: 5});
                                                    return false;
                                                }
                                            });

                                        }

                                    </script>
                                </div>
                                <div class="contactInfo" style="margin-left: 0px">
                                    <span class="c9">电话：</span>[[${toudi.resume.phone}]] &nbsp;&nbsp;&nbsp;
                                    <span class="c9">邮箱：</span>
                                    <a target="_blank" th:href="'http://'+${toudi.resume.email}">[[${toudi.resume.email}]]</a>
                                </div>
                            </li>

                        </ul>
                        <!-- end .resumeLists -->
                    </form>
                </dd>
            </dl>
            <!-- end .company_center_content -->
        </div>
        <!--主体 end-->
        <script src="style/js/jquery.ui.datetimepicker.min.js" type="text/javascript"></script>
<!--        <script src="style/js/received_resumes.min.js" type="text/javascript"></script>-->
        <script>
        </script>
        <div class="clear"></div>
        <input type="hidden" value="b4bc225f0d084ee5b8d045f9c98a49ff" id="resubmitToken">
        <a rel="nofollow" title="回到顶部" id="backtop"></a>
    </div>
    <!-- end #container -->
</div>
<!--引入页面底部备案号-->
<div th:replace="public/publicFragment::footer_nav"></div>

<script src="style/js/core.min.js" type="text/javascript"></script>
<script src="style/js/popup.min.js" type="text/javascript"></script>

</body>

</html>